package com.hundsun.cprs.yyt.gateway.service.trade;

import com.hundsun.cprs.yyt.gateway.request.QuotaExchangeRequest;
import com.hundsun.cprs.yyt.gateway.request.QuotaHoldRequest;
import com.hundsun.cprs.yyt.gateway.request.QuotaRequest;
import com.hundsun.cprs.yyt.gateway.response.*;
import com.hundsun.jresplus.remoting.impl.annotation.Service;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceModule;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceParam;

/**
 * 配额相关对外T2接口
 * @author herong22384
 * @date 2019/8/9 16:26
 */
@ServiceModule
public interface QuotaCommonService {
    /**
     * 我的配额列表（查询个人配额持仓列表）
     * @param request
     * */
    @Service(functionId = "319395", desc = "我的配额列表")
    QuotaHoldListRResponse getMyQuotaHoldList(QuotaHoldRequest request);

    /**
     * 配额类型列表返回（传入userId，即返回个人可兑配额类型）
     * 不传则返回所有专用配额类型
     * @param request
     * */
    @Service(functionId = "319396", desc = "配额类型列表查询")
    QuotaListResponse getQuotaList(QuotaRequest request);

    /**
     * 配额兑换接口
     * @param request
     * */
    @Service(functionId = "319397", desc = "配额兑换")
    BaseResponse quotaExchange(QuotaExchangeRequest request);

    /**
     * 配额兑换列表查询
     * @param request
     * */
    @Service(functionId = "319398", desc = "配额兑换列表查询")
    QuotaExchangeListResponse getQuotaRecordList(QuotaExchangeRequest request);

    /**
     * 配额兑换详情
     * @param
     * */
    @Service(functionId = "319399", desc = "配额兑换详情")
    QuotaExchangeResponse getQuotaRecordDetail(@ServiceParam("user_id")Long userId,@ServiceParam("record_id")Long recordId);
}
